package com.xh.bussiness.system.service;



import com.xh.bussiness.system.bean.request.GroupRuleRequest;
import com.xh.bussiness.system.model.GroupRule;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 组权限 服务类
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
public interface IGroupRuleService extends IBaseService<GroupRule> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryGroupRulePage(XhPage page, GroupRuleRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryGroupRule(GroupRuleRequest bean);

    List<GroupRule> queryGroupRuleByGroupId(String groupId, String subjectCode);

    boolean deleteByGroupId(String groupId,String subjectCode);

    GroupRule queryGroupRuleBySubjectCodeAndUserId(String subjectCode, String userId);
}
